var express = require("express")
var net = require("http")
var io = require("socket.io")
var moment = require("moment");
var port = 80;
var app = express();
var server = net.createServer(app);
var manager = io.listen(server);
server.listen(port);
app.use("/", function (req, res) {
    res.sendfile(__dirname + '/index.html');
});
manager.sockets.on('connection', function (socket) {
    setInterval(function () {
        var now = moment().format("h:mm:ss");
        socket.emit('news', {
            message: now.toString()
        });
    }, 1000);
    socket.on('my other event', function (data) {
        console.log(data);
    });
});
var nl = document.getElementsByName("abc");
for(var i = 0; i < nl.length; ++i) {
    nl[i].textContent = "test";
}
console.log("listen on port " + port);
//@ sourceMappingURL=app.js.map
